package com.wyp.design.pattern.structural.decorator.v1;

/**
 * @author: Oliver
 * @time: 2020/5/9/12:07
 */
public class BatterCakeWithEgg extends BatterCake {

    @Override
    protected String getDesc() {
        return super.getDesc() + "加一个蛋";
    }

    @Override
    protected int cost() {
        return super.cost() + 1;
    }
}
